package copyengine.resource.dto
{
	import copyengine.resource.CEResConfig;
	import copyengine.resource.CEResManger;

	public class ResDTOFactory
	{
		private static var dto:ResObjectRequestParamDTO = new ResObjectRequestParamDTO();

		private static var initDTO:ResInitDTO = new ResInitDTO();

		public function ResDTOFactory()
		{
		}

		//==================
		//==Request
		//=================

		public static function getSpriteDTO(_className:String):ResObjectRequestParamDTO
		{
			dto.fileType = CEResConfig.FILE_TYPE_SWF;
			dto.displayObjectType = CEResConfig.SWF_TYPE_SPRITE;
			dto.className = _className;
			return dto;
		}

		public static function getMovieClipDTO(_className:String):ResObjectRequestParamDTO
		{
			dto.fileType = CEResConfig.FILE_TYPE_SWF;
			dto.displayObjectType = CEResConfig.SWF_TYPE_MOVIECLIPE;
			dto.className = _className;
			return dto;
		}

		public static function getCacheDisplayObjectDTO(_className:String, _cacheType:int):ResObjectRequestParamDTO
		{
			dto.fileType = CEResConfig.FILE_TYPE_SWF;
			dto.displayObjectType = CEResConfig.SWF_TYPE_CACHE;
			dto.className = _className;
			dto.cacheType = _cacheType;
			return dto;
		}

		public static function getDisplayObjectDTO(_className:String):ResObjectRequestParamDTO
		{
			dto.fileType = CEResConfig.FILE_TYPE_SWF;
			dto.displayObjectType = CEResConfig.SWF_TYPE_SPRITE;
			dto.className = _className;
			return dto;
		}

		public static function getBitmapDTO(_className:String):ResObjectRequestParamDTO
		{
			dto.fileType = CEResConfig.FILE_TYPE_BITMAPDATA;
			dto.className = _className;
			return dto;
		}

	}
}
